import request from '@/utils/request'

// 统计消息未读数量
export function getPushRecordStatistics(query) {
    return request({
        url: '/front/flat/messageCenter/pushRecord/statistics',
        method: 'get',
        params: query
    })
}

// 查询推送记录列表
export function getPushRecordList(query) {
    return request({
        url: '/front/flat/messageCenter/pushRecord/list',
        method: 'get',
        params: query
    })
}
// 修改消息状态为已读（路径上传推送记录id）
export function updatePushRecordStatus(id) {
    return request({
        url: '/front/flat/messageCenter/pushRecord/'+id,
        method: 'put'
    })
}
// 新增业主留言信息
export function addProprietorMessage(data) {
    return request({
        url: '/front/flat/messageCenter/proprietorMessage',
        method: 'post',
        data: data
    })
}